Semantics Of Non-Terminating Systems Through Term Rewriting
نویسندگان
چکیده
This thesis is primarily concerned with the algebraic semantics of non-terminating term rewriting systems. The usual semantics for rewrite system is based in interpreting rewrite rules as equations and rewriting as a particular case of equational reasoning. The termination of a rewrite system ensures that every term has a value (normal form). But, in general we cannot guarantee this. The research that has been done on non-terminating rewrite systems is centered on seeking semantics for these systems where the usual properties of con uent systems (like uniqueness of normal forms) still hold. These approaches extend the original set of terms (with in nite terms) in such a way that every term has a value. We propose a new semantics for rewrite systems based on interpreting rewrite rules as inequations between terms in an ordered algebra. We show that a variant of equational logic { inequational logic { is an institution and we further prove that rewriting is a sound and complete proof system for this logic. For the case of con uent systems, we show that the algebra of normal forms in a terminating system is a uniquely minimal covering of the term algebra. In the non-terminating case, the existence of this minimal covering is established in the completion of an ordered algebra formed by rewriting sequences. We thus generalize the properties of normal forms for non-terminating systems to this minimal covering. These include the existence of normal forms for arbitrary rewrite systems, and their uniqueness for con uent systems, in which case the algebra of normal forms is isomorphic to the canonical quotient algebra associated with the rules when seen as equations. This extends the bene ts of algebraic semantics to systems with non-deterministic and non-terminating computations. We rst study properties of abstract orders, and then instantiate these to term rewriting systems. Furthermore, we review the theory of rewriting systems without any restriction on the form of the rules. In this review we include a comparison between several de nitions of concurrent rewriting. i
منابع مشابه
Semantics of Non-terminating Rewrite Systems Using Minimal Coverings
We propose a new semantics for rewrite systems ba.~ed on interpreting rewrite rules as in equatioIlB between terms in an ordered algebra. In part.icular, we show thai the algebra. of normal forms in a terminating system is a uniqnely minimal covering of the term algebra. In the non-terminating ca..~e, the existence of this minimal covering is established in the comple tion of an ordered algeb...
متن کاملImplementing term rewriting by jungle evaluation
Jungles are acyclic hypergraphs which represent sets of terms such that common subterms can be shared. Term rewrite rules are translated into jungle evaluation rules which implement parallel term rewriting steps. By using additional hypergraph rules which “fold” equal subterms, even non-left-linear term rewriting systems can be implemented. As a side effect, these folding rules can speed up the...
متن کاملNarrowing for Non-Determinism with Call-Time Choice Semantics
In a recent work we have proposed let-rewriting, a simple one-step relation close to ordinary term rewriting but able, via local bindings, to express sharing of computed values. In this way, let-rewriting reflects the call-time choice semantics for non-determinism adopted by modern functional logic languages, where programs are rewrite systems possibly non-confluent and non-terminating. Equival...
متن کاملA Reduction-Preserving Completion for Proving Confluence of Non-Terminating Term Rewriting Systems
We give a method to prove confluence of term rewriting systems that contain non-terminating rewrite rules such as commutativity and associativity. Usually, confluence of term rewriting systems containing such rules is proved by treating them as equational term rewriting systems and considering E-critical pairs and/or termination modulo E. In contrast, our method is based solely on usual critica...
متن کاملOn Rewriting Terms with Strict Functions and Error Propagation
Partial functions play an essential role in the semantics of programs as a means to formalize non-terminating computations and computations terminating in an exception or error situation. However, when properly formalized, partial functions and errors often complicate underlying formalisms and reasoning systems. In this paper we focus on term rewriting systems, and discuss how partial functions...
متن کامل